SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 34865: Reading an empty Input Stream causes the SAS® Stored Process Server to stop responding

DetailsAboutRate It

If a SAS® Stored Process attempts to read from an Input Steam that contains no data, the SAS® Stored Process Server will stop responding.

For example, if a SAS Stored Process has an Input Stream called webin and the client application does not provide any data in this Input Stream when it invokes the SAS Stored Process, then the following code will cause the Stored Process Server to stop responding.

data _null_;
  infile webin;  /* Input Stream is empty */
  input;
  list;
run;
You can avoid this problem by using the READTIMEOUT option on the INFILE statement for the input stream. For example:
%macro read_stream(stream_fileref);
   
   data _null_;
     infile &stream_fileref readtimeout=10;  
   run;

   libname &stream_fileref xml;

   proc copy in=&stream_fileref out=work;
   run;

   libname &stream_fileref clear;

%mend read_stream;

%read_stream(webin);

 

An Input Stream can be specified using the SAS® Management Console.

When running SAS Management Console in SAS® 9.1.3, perform the following steps:

  1. Select the Properties window for the SAS Stored Process.
  2. Select the Execution tab in the Properties window.
  3. Click the Streams button.

When running SAS Management Console in SAS® 9.2, perform the following steps:

  1. Select the Properties window for the SAS Stored Process.
  2. Select the Data tab in the Properties window.
  3. Click the New button.
  4. Specify the Input Stream on the New Data Source window.


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS Integration TechnologiesMicrosoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS2M2
z/OS9.1 TS1M3 SP49.2 TS2M2
Microsoft® Windows® for x649.1 TS1M3 SP49.2 TS2M2
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS2M2
HP-UX IPF9.1 TS1M3 SP49.2 TS2M2
Linux9.1 TS1M3 SP49.2 TS2M2
Linux on Itanium9.1 TS1M3 SP49.2 TS2M2
OpenVMS Alpha9.1 TS1M3 SP49.2 TS2M2
Solaris for x649.1 TS1M3 SP49.2 TS2M2
Tru64 UNIX9.1 TS1M3 SP49.2 TS2M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.